//
//  UIView+Extension.h
//  BonweBuy
//
//  Created by liuxin on 2020/2/25.
//  Copyright © 2020 liuxin. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)

@property (nonatomic, assign) CGFloat xl_x;
@property (nonatomic, assign) CGFloat xl_y;
@property (nonatomic, assign) CGFloat xl_width;
@property (nonatomic, assign) CGFloat xl_height;
@property (nonatomic, assign) CGFloat xl_bottom;
@property (nonatomic, assign) CGFloat xl_right;
@property (nonatomic, assign) CGFloat xl_centerX;
@property (nonatomic, assign) CGFloat xl_centerY;
@property (nonatomic, assign) CGSize  xl_size;
@property (nonatomic, assign) CGPoint xl_origin;

// 添加线条Layer 默认颜色 248.248.248  F8F8F8
- (void)addLineWithFrame:(CGRect)frame;
- (void)addLineWithFrame:(CGRect)frame color:(UIColor *)color;

-(void)setlayerCornerRadius:(CGFloat)cornerRadius corners:(UIRectCorner)corners;

@end

NS_ASSUME_NONNULL_END
